﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BloomsburyBanHang.DAO;

namespace BloomsburyBanHang.TrangAdmin
{
    public partial class Admin_ThemNhaVanChuyen : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Btn_Add_Click(object sender, EventArgs e)
        {
            string tenNMG = Txt_Ten.Text;
            string tenservice = Txt_TenService.Text;
            string tenHamLogin = Txt_TenHamLogin.Text;
            string tenHamTranfer = Txt_TenHamTranfer.Text;
            string url = Txt_URL.Text;
            int kq = NhaMoGioiDAO.ThemNhaMoGioi(tenNMG, url, tenservice, tenHamLogin, tenHamTranfer);
            if (kq == 1)
                this.Label2.Text = "Them thanh cong!!!";
            else
                this.Label2.Text = "Them that bai!!!";
        }
    }
}